package cn.edu.njpi.two;

/**
 * @author 朱宗辉
 * @version V1.0
 * @Package cn.edu.njpi.two
 * @date 2021/7/11 21:46
 */
public class Host {
    private final Helper helper = new Helper();

    public void request(final int count, final char c) {
        System.out.println("     requests(" + count + ", " + c + ") BEGIN");
        new Thread() {
            @Override
            public void run() {
                helper.handle(count, c);
            }
        }.start();
        System.out.println("    requests(" + count + ", " + c + ") END");
    }
}
